package com.fz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fz.entity.Repair;
import com.fz.entity.TNotice;
import com.baomidou.mybatisplus.extension.service.IService;


import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fz
 * @since 2024-08-22
 */
public interface TNoticeService extends IService<TNotice> {


    Page<TNotice> getList(Integer pageNo, Integer pageSize);

    Boolean add(String title, String content, LocalDateTime time);

    boolean update(Long id, String title, String content);
    boolean update(Long id,Long view);

    boolean del(Long id,Integer statue,Integer statu);
    List<TNotice> search(String input);
    Page<TNotice> search(String input, Integer pageNo, Integer pageSize);
    Page<TNotice> showList(Integer pageNo, Integer pageSize);
    String detail(Long id);

    Long getByTNoticeId(Long tNoticeId);

   //赋值给浏览量
    List<TNotice> updateview(List<TNotice> tNoticeList);

}
